package com.atguigu.gmall.pms.config;
/**
 * Project Name: gmall-learn.
 * Package Name: com.atguigu.gmall.pms.config.
 * File Name: MybatsiPlusConfig
 * Copyright (c) 2020, 南京天芯云数据服务有限公司.
 */

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import com.baomidou.mybatisplus.extension.plugins.pagination.optimize.JsqlParserCountOptimize;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 *
 * Class Name: MybatsiPlusConfig
 * FQDN：com.atguigu.gmall.pms.config.MybatsiPlusConfig
 * Author: 阿辉
 * Date: 2020/4/7 16:41
 * Description:
 *
 */
@Configuration
public class MybatsiPlusConfig {
    @Bean
    public PaginationInterceptor paginationInterceptor(){
        PaginationInterceptor paginationInterceptor =new PaginationInterceptor();
        return paginationInterceptor;
    }
}
